$(() => {
  let layer = layui.layer
  $('#exit').on('click', () => {
    layer.confirm(
      '确定要退出么？',
      { icon: 3, title: '提示' },
      function (index) {
        localStorage.clear('mytoken')
        location.href = './login.html'
        layer.close(index)
      }
    )
  })
})
